import request from '@/utils/request'

// 查询物资出门详情列表
export function listOaMaterialDetails(query) {
  return request({
    url: '/material/oaMaterialDetails/list',
    method: 'get',
    params: query
  })
}

// 查询物资出门详情详细
export function getOaMaterialDetails(id) {
  return request({
    url: '/material/oaMaterialDetails/' + id,
    method: 'get'
  })
}

// 保存物资出门详情
export function saveOaMaterialDetails(data) {
  return request({
    url: '/material/oaMaterialDetails/save',
    method: 'post',
    data: data
  })
}

// 删除物资出门详情
export function delOaMaterialDetails(id) {
  return request({
    url: '/material/oaMaterialDetails/' + id,
    method: 'delete'
  })
}

// 导出物资出门详情
export function exportOaMaterialDetails(query) {
  return request({
    url: '/material/oaMaterialDetails/export',
    method: 'get',
    params: query
  })
}
